<?php

namespace app\utils;

use PhpOffice\PhpSpreadsheet\IOFactory;
use think\facade\Filesystem;
use think\File;

class FilesUtils
{
    public function save($saveClass, File $uploadFile){
        $saveName = Filesystem::disk('public')->putFile($saveClass, $uploadFile);
        $filePath = Filesystem::disk('public')->path($saveName);

        return ['runtime_path'=>$filePath,'url'=>$saveName];
    }





}